from flask import current_app

from info import redis_store
from . import index_blu
from flask import render_template

@index_blu.route('/',methods=['GET','POST'])
def hello_world():
    redis_store.set('name','zhangsan')

    # logging.debug('调试信息')
    # logging.info('详细信息')
    # logging.warning('警告信息')
    # logging.error('错误信息')


    return render_template('news/index.html')

@index_blu.route('/favicon.ico')
def get_web_logo():

    return  current_app.send_static_file('news/favicon.ico')